import System.IO

class FileFinder:
		initialized as bool
		files = {}
		def constructor():
		   initialized = false
		def HasUnittest(name as FileInfo):
			if(files[name] != null):
				return true
			return false
		
		def GetUnittest(name as FileInfo):
			return files[name]
			
		def FindTests(dirName as string):
	         try:
	             for d in Directory.GetDirectories(dirName):
	                  for f in Directory.GetFiles(d,"*.dll"):
	          	           filename = f
	                      utah = UnittestAssemblyHelper(filename)
	                      if(utah.IsUnittest()):
	                           implementation = utah.FindImplementationAssemblyName()
	                           files[implementation] = filename
	                           print filename
	                           print implementation
	                  FindTests(d)
	         except ex:
	            print ex.Message
             